package de.fuberlin.inf.alp2;

public class Node {
	private Object value;
	private Node next;
	
	public Node(){}
	public Node(Object value){
		this(value, null);
	}
	public Node(Object value, Node next){
		this.value = value;
		this.next = next;
	}
	
	public void setNext(Node next){
		this.next = next;
	}
	public Node getNext(){
		return this.next;
	}
	public void setValue(Object value){
		this.value = value;
	}
	public Object getValue(){
		return this.value;
	}
}
